<template>
<div class="weekend">
  <div class="weekend-title">周末去哪</div>
    <ul>
      <li class="weekend-item border-bottom" v-for="item in list" :key="item.id">
        <div class="img-container"><img :src="item.imgUrl" alt=""></div>
        <div class="item-info">
          <p class="item-title">{{item.title}}</p>
          <p class="item-desc">{{item.desc}}</p>
        </div>
      </li>
    </ul></div>  
</template>
<script>
export default {
  data () {
    return {
    }
  },
  props:{
    list:Array
  }
}
</script>
<style lang="scss" scoped>
.weekend {
  .weekend-title {
    background-color: #eee;
    line-height: 0.8rem;
    text-indent: 2em;
  }
  .weekend-item {
    .img-container{
      height: 0;
      overflow: hidden;
      padding-bottom: 37.09%;
      img{
        width: 100%;
      }
    }
    .item-info{
      padding: .1rem;
      .item-title{
        line-height: .54rem;
        font-size: .32rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .item-desc{
        line-height: .4rem;
        color: #ccc;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .item-button{
        background: #ff9300;
        padding: 0 .2rem;
        border-radius: .06rem;
        margin-top: .2rem;
        color: #fff;
        line-height: .45rem;
      }
    }
  }
}
</style>


